package com.atguigu.gmall.item.to;

import com.atguigu.gmall.product.entity.SpuSaleAttr;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lfy
 * @Description
 * @create 2023-08-18 14:43
 */
@Data
public class SkuDetailTO {

    //分类层级路径
    private CategoryView categoryView;

    //sku信息
    private SkuInfoVo skuInfo;

    private BigDecimal price;//商品价格

    //spu销售属性
    private List<SpuSaleAttr> spuSaleAttrList;

    //不知道
    private String valuesSkuJson;




    @Data
    public static class SkuInfoVo{
        private Long id;
        private String skuName;
        private Long spuId;
        private String skuDefaultImg;
        private BigDecimal weight;
        private List<SkuImageVo> skuImageList;
    }

    @Data
    public static class SkuImageVo {
        private String imgUrl;
    }
}
